package org.osiris.server;

import org.osiris.client.model.UsuarioViewBean;
import org.osiris.client.services.AuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * {@link AuthenticationService} implementation.
 * 
 * @author See Wah Cheng
 * @created 5 Jun 2009
 */
@SuppressWarnings("serial")
public class AuthenticationServiceServlet extends DependencyInjectionRemoteServiceServlet implements
		AuthenticationService {

	@Autowired
	org.osiris.server.AuthenticationService authenticationService;

	public UsuarioViewBean authenticate(String username, String password) {
		return authenticationService.authenticate(username, password);
	}

	public void logout() {
		authenticationService.logout();
	}

	

}
